home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 14 / ltsapp.zip / WIDEDC.TXT < prev    next >
Text File  |  1986-10-26  |  14KB  |  277 lines

  1.                 WIDE.APP  --  File Import Structured WIDE
  2.  
  3. WIDE.APP is a Symphony (TM)  Add-In application that augments Symphony's
  4. standard File Import  capabilities.  It  adds the  option "Wide"  to the
  5. normal choices of "Text" and "Structured" on the File Import menu.
  6.  
  7. WIDE imports structured  ASCII files onto a Symphony  worksheet.  It has
  8. the same general functions as File-Import-Structured.  In addition, WIDE
  9. provides the following features:
  10.  
  11.      1. Input files can have lines longer than 240 characters.
  12.  
  13.      2. Formulas can be entered, just as if they were typed in
  14.         SHEET mode.
  15.  
  16.      3. Input text can contain imbedded double-quote marks.
  17.  
  18.      4. Label cells can be right-aligned or centered if desired.
  19.  
  20.      5. Cells can be formatted as they are being input.
  21.  
  22.      6. Column widths can be set appropriate for the input data.
  23.  
  24.      7. Cells can be entered in an order other than strict
  25.         left-to-right top-to-bottom.
  26.  
  27. To make the facilities of the WIDE Add-In available to Symphony, use the
  28. Application Attach  command to attach  WIDE.APP at the beginning  of the
  29. session.  When WIDE is no longer  needed, Application Detach can be used
  30. to remove it from Symphony's memory area.  However, it may be convenient
  31. to keep WIDE attached while its functions may still be needed.
  32.  
  33. After WIDE.APP  is attached to  Symphony, it  can be activated  from the
  34. File Import menu by selecting  [SERVICES] File Import Wide.  You will be
  35. instructed to identify a file to  be read, and then directed to indicate
  36. a target range for the import operation.  The default file extension for
  37. the input file is presumed to be PRN, but the standard Symphony filename
  38. specification procedures can be used to identify a file in any directory
  39. and with any desired extension.
  40.  
  41. The target import range can be specified by pointing with an anchored or
  42. unanchored cursor, by typing a cell address or pair of cell coordinates,
  43. or by providing a range name.  If the target is specified as an anchored
  44. range, i.e. with upper-left and lower-right coordinates, then the import
  45. operation will be constrained to that range; no cells outside that range
  46. will be affected.   If an unanchored range is specified,  i.e. by giving
  47. the upper-left cell address only, then  cells to the right and below the
  48. target address may  be replaced by data from the  input file.  If global
  49. protection is enabled, however, then  any attempt to overwrite protected
  50. cells will immediately terminate the import operation.
  51.  
  52. WIDE will read files with any desired record length.  The data from each
  53. record (line)  is placed in  a separate  row on the  Symphony worksheet.
  54. Each record is terminated by an ASCII  Carriage Return (CR = 0Dh) and an
  55. optional Line Feed  (LF = 0Ah) character.  End of  file can be indicated
  56. either by an  ASCII End-Of-File (EOF = 1Ah) character  or by DOS knowing
  57. exactly how many bytes long the file is.
  58.  
  59. Each line of the input file  can contain many fields.  These fields have
  60. either cell  data (text, numbers,  or formulas) or else  contain special
  61. instructions to WIDE which control  the import process.  Each data field
  62. in a  record is placed in  a separate column on  the Symphony worksheet,
  63. unless a  control command in the  input stream directs WIDE  to move the
  64. logical cursor to  another column or row.  Fields in  the input file are
  65. separated by any number of spaces, commas, or almost any other delimiter
  66. characters.
  67.  
  68. Data fields can be constructed as follows:
  69.  
  70.      1. Text is enclosed in matching double-quote (") characters.
  71.         A text field can be up to 240 characters long between the
  72.         quotes.  Each text field is placed into a cell as a left-
  73.         aligned label.  If a double-quote mark is needed as an
  74.         imbedded in the text string, it should be indicated by a
  75.         pair of double-quote characters ("").  Any tab characters
  76.         (ASCII 09h) in the text will be expanded to blank spaces
  77.         with tab settings assumed at every eight (8) positions.
  78.  
  79.      2. Numbers are entered without any delimiter characters.  A
  80.         numeric field consists of a string of digits, with an
  81.         optional leading minus sign, an optional decimal point,
  82.         and optionally trailed by either a percent sign or an
  83.         exponent.  The standard Symphony rules for typing numbers
  84.         into SHEET cells are applied.
  85.  
  86.      3. Formulas are enclosed in matching square bracket ( [ ] )
  87.         characters.  A formula field can be up to 240 characters
  88.         long between the brackets, and two right-brackets ( ]] )
  89.         can signify a required one.  Each formula field is placed
  90.         into a cell exactly as if it were typed into a Symphony
  91.         SHEET cell.  Imported formulas can refer to range names
  92.         and cell addresses as usual.  All references to cells by
  93.         cell coordinates (A1, B2, ...) are treated as references
  94.         relative to the upper-left corner of the target import
  95.         range.  If the contents of a bracketed string are not
  96.         acceptable to Symphony as a formula (or a label cell or
  97.         number cell) then the formula string is imported as a
  98.         label cell prefaced by the characters ERR> and left on
  99.         the worksheet for subsequent editing.  Note that brackets
  100.         can be used to import label cells with leading left- (')
  101.         right- (") or center-alignment (^) prefix characters.
  102.         This allows more specific control over cell alignment
  103.         than importing quoted text strings, which are always
  104.         loaded as left-aligned labels.  
  105.  
  106.      4. If any input field is longer than 240 characters, then it
  107.         is truncated at the 240-character position without any
  108.         warning message.  If the final delimiter for the text (")
  109.         or formula (]) field is not found before the end of the
  110.         input line, then the entire field is ignored and the
  111.         corresponding cell on the worksheet is not filled.
  112.  
  113. In addition to  the data values that WIDE can  import, there are special
  114. command fields  that can be used  to control the import  process.  These
  115. fields are enclosed in curly brace ( { } ) characters.  They provide the
  116. ability to specify the cell format of imported fields, to set the column
  117. width of columns in the import range, and to import the fields in orders
  118. other than strict row-per-line column-per-field sequence.
  119.  
  120. The  following control  strings are  accepted, and  must be  enclosed in
  121. curly braces:
  122.  
  123.         COMMAND  STRING    PURPOSE
  124.         -------  --------  ----------------------------------------
  125.         Home     H         Resets the import cursor to point to the
  126.                            upper-left corner of the import range.
  127.  
  128.         Right    R         Moves the import cursor one (or more)
  129.                  R ddd     cells to the right, skipping over any
  130.                            data already on the sheet.
  131.  
  132.         Left     L         Moves the import cursor one (or more)
  133.                  L ddd     cells to the left, skipping over any
  134.                            data already on the sheet.
  135.  
  136.         Down     D         Moves the import cursor one (or more)
  137.                  D dddd    rows down, skipping over any data
  138.                            already on the sheet.
  139.  
  140.         Up       U         Moves the import cursor one (or more)
  141.                  U dddd    rows up, skipping over any data already
  142.                            on the sheet.
  143.  
  144.         Width    W ddd     Sets the column width on the SHEET of
  145.                            the column targeted for the next field.
  146.  
  147.         Format   F fdd A   Sets the cell display format for cells
  148.                            imported after this command field.
  149.  
  150.  
  151. In the above list  the notation dd, ddd, or dddd stands  for a string of
  152. up to 2, 3,  or 4 decimal digits used in the  command.  Any blank spaces
  153. between the command identifying letter and the parameters of the command
  154. are optional.  Command  letters may be in either upper  or lower case (H
  155. or h, R or r, ...) but  must immediately follow the left curly brace ({)
  156. character which begins the command field.  The right curly brace must be
  157. found on the same input line or the command will be ignored.
  158.  
  159. The following are  examples of valid command fields, for  all except the
  160. Format command which is explained later:
  161.  
  162.         {H}      Moves the import cursor to the beginning of the
  163.                  range for the File Import Wide operation.
  164.  
  165.         {H  }    Same as above (extraneous blanks ignored).
  166.  
  167.         {R}      Skips the cursor one cell to the right.
  168.  
  169.         {L 12}   Moves 12 cloumns to the left.
  170.  
  171.         {D123 }  Moves 123 rows down, skipping lines.
  172.  
  173.         {U 8193} Moves the cursor to the top line of the import
  174.                  range (see note below about large numbers).
  175.  
  176.         {W 15}   Sets the column width for the next targeted SHEET
  177.                  column to 15 characters.
  178.  
  179. As indicated in the above example of the Up command, WIDE limits actions
  180. of the special commands to reasonable numbers.  A Left operation can not
  181. back up to a column before the  selected import range, and an Up can not
  182. move above the top import line.  A  value greater than 8192 for the Down
  183. command is treated as a move to row  8192, and a value above 256 for the
  184. Right command is treated as a move to column 256, but such locations are
  185. subject to being  cut off because they are likely  outside of the import
  186. range initially specified.  Similarly, a column Width more than 240 will
  187. be ignored by Symphony.
  188.  
  189. The Format command field affects all  data cells imported until the next
  190. Format command.  The initial cell display format is Reset (with Prevent-
  191. Changes for protected  cells).  The Format command  uses specifiers like
  192. those shown  in the Symphony control  panel for SHEET cells:  e.g. C2 is
  193. Currency with 2 decimal places, T1 is a Time format, F0A indicates Fixed
  194. with zero decimals and Allow-Changes when global protection is on, etc.
  195.  
  196. The following Format types are recognized:
  197.  
  198.         CODE     EXAMPLE   Symphony FORMAT
  199.         -------  --------  ----------------------------------------
  200.         F0..15    1234.56  Fixed, with 0-15 decimal places
  201.         S0..15   1.23E+03  Scientific, with 0-15 decimal places
  202.         C0..15    $123.45  Currency, with 0-15 decimal places
  203.         P0..15   1,234.56  Punctuated, with 0-15 decimal places
  204.         %0..15     12.34%  Percent (%), with 0-15 decimal places
  205.         G         1234.56  General, like Fixed or Scientific
  206.         D1..5      05-Sep  Date, in 5 Symphony formats
  207.         T1..4    10:36 AM  Time, in 4 Symphony formats
  208.         B        ++++      Bar-Graph (+), horizontal graph
  209.         L        +A1-B2    Literal, formula text displayed
  210.         H                  Hidden, no cell value displayed
  211.         R        1234.563  Reset, cell display in default format 
  212.  
  213. In order to set the Allow-Changes flag for a cell, the Format command is
  214. specified with an "A" at the end of  the format code.  If the "A" is not
  215. given, the  default protection status (Prevent-Changes)  is incorporated
  216. into the cell format.
  217.  
  218. The following are examples of Format commands:
  219.  
  220.         {F F2}   Fixed, with 2 decimal places.
  221.         {FS07 }  Scientific, 7 decimal places
  222.         {F C0 A} Currency, no decimals, Allow-Changes
  223.         {FP12}   Punctuated, with 12 decimal places
  224.         {F %0}   Percent, no decimal places
  225.         {FG}     General format
  226.         {F D1 }  Date format 1 (DD-MMM-YY)
  227.         {FT2}    Time format 2 (HH:MM:SS AM/PM)
  228.         {F BA }  Bar-Graph, Allow-Changes
  229.         {F L }   Literal, formula text instead of value
  230.         {FH}     Hidden, no cell value displayed
  231.         {F R}    Reset, back to default cell format
  232.         {FRA}    Reset, but with Allow_changes flag
  233.  
  234. All of the format  codes may be specified in either  upper case or lower
  235. case alphabetic characters.  If an unknown format code is specified, the
  236. Format command is ignored.
  237.  
  238. If no Format command  is given, or if the Reset  code is specified, then
  239. imported cells will be assigned the default format of the Symphony SHEET
  240. window currently active.  The Format command does not affect the default
  241. format status of Symphony.
  242.  
  243. The following example illustrates several of the features of File Import
  244. WIDE.  If the ASCII  file shown is imported to a  range beginning at E1,
  245. the Symphony SHEET window will appear as indicated.
  246.  
  247.  
  248.  
  249. INPUT
  250.  
  251. (In this representation of the ASCII import file, CRLF indicates the end
  252. of an input line, i.e.  Carriage-Return Line-Feed, and EOF indicates the
  253. End-Of-File mark.)
  254.  
  255. {W18},"Region", {W12},["Income] {W12},["Expense] , {W12} ["Profit] CRLF
  256. [\-]{R}{r}[\-]{F p2}CRLF
  257. "West Coast",12345.67 11e3 [+b3-c3] CRLF
  258. """Newest"" States" {R}50000[+b4-c4]CRLF
  259. "East Coast", 98765, 12345%, [+B5-C5] CRLF
  260. CRLF
  261. [^TOTAL] {r 2}    {f C2},[@sum(D3..d5)] EOF
  262.  
  263.  
  264.  
  265. OUTPUT
  266.  
  267.    |-------------E--------------F-----------G-----------H---------I----|
  268.    1    Region                 Income     Expense      Profit          |
  269.    2    ------------------                        ------------         |
  270.    3    West Coast          12,345.67   11,000.00    1,345.67          |
  271.    4    "Newest" States                 50,000.00  (50,000.00)         |
  272.    5    East Coast          98,765.00      123.45   98,641.55          |
  273.    6                                                                   |
  274.    7          TOTAL                                $49,987.22          |
  275.    |                                                                   |
  276.    |===================================================================|
  277.